<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <f:view contentType="text/html" encoding="utf-8">
      <h:head/>
<h:body>
<style>
body {
  background: url(travelDest.jpeg) no-repeat;
  background-size: 125%;
}
</style>
       <p:tabMenu activeIndex="2">
    		<p:menuitem value="HomePage" url="home.xhtml" icon="ui-icon-star"/>
    		<p:menuitem value="Registrati" url="register.xhtml" icon="ui-icon-wrench"/>
    		<p:menuitem value="RicercaPacchetto" url="search.xhtml" icon="ui-icon-search" />
    		<p:menuitem value="Spazio Utente" url="user/index.xhtml" icon="ui-icon-person" />
    		<p:menuitem value="Spazio Impiegato" url="employee/index.xhtml" icon="ui-icon-person" />
    	</p:tabMenu>
    <br/>
		<h:form>
		<p:panel header="SearchForm">
			<h:panelGrid columns="3" id="regGrid">
				<h:outputLabel for="pid">PID:</h:outputLabel>
				<p:inputText id="pid" value="#{searchPktBean.packet.pid}" />
				<p:message for="pid" />
				
				<h:outputLabel for="dest">Destinazione:</h:outputLabel>
				<p:inputText id="dest" value="#{searchPktBean.packet.destinazione}" />
				<p:message for="dest" />
				
				<h:outputLabel for="dat">Data (A partire da):</h:outputLabel>
				<p:inputText id="dat" value="#{searchPktBean.packet.dataInizio}" />
				<p:message for="dat" />
				
				</h:panelGrid>

		</p:panel>
				<br/><br/>
				<p:commandButton value="RicercaPerPID" update="regGrid" action="#{searchPktBean.searchByPid()}" />&nbsp;
				<p:commandButton value="RicercaPerDestinazione" update="regGrid" action="#{searchPktBean.searchByDestinazione()}" />&nbsp;
				<p:commandButton value="RicercaPerData" update="regGrid" action="#{searchPktBean.searchByDate()}" />&nbsp;
				<p:commandButton value="RicercaMultifiltro" update="regGrid" action="#{searchPktBean.searchCombo()}" />
	</h:form>
				
  </h:body>
  </f:view>
</html>